how to calculate distance travelled from a distance time graph